import type { ProjectDetail } from "@dci/core"; import { cache } from "react"; import { api, type ApiResult } from "@/lib/api"; /** Per-request memoised project loader shared by layout (existence gate), metadata, page and OG image. */ export const getProject = cache(async (slug: string): Promise> => api.project(slug));